package kz.kstu.aecdemo.app.context;

import kz.kstu.aecdemo.business.entity.security.AbstractAccount;

/**
 * @author Filipp_Stankevich
 *         created: 9/22/11 6:36 PM
 */
public class ClientContext {

    private static ClientContext instance;
    private AbstractAccount account;

    private ClientContext() {
    }

    public static ClientContext getInstance() {
        if (instance == null) {
            instance = new ClientContext();
        }
        return instance;
    }

    public boolean isAdmin() {
        return true;
    }

    public AbstractAccount getAccount() {
        return account;
    }

    public void setAccount(AbstractAccount account) {
        this.account = account;
    }
}
